﻿namespace BuzzX8.Xmpp.Connectivity
{
    public class TcpConnection : XmppConnectionBase
    {
        public TcpConnection(ConnectionSettings settings) : base(settings)
        {
        }

        protected override IXmppChannel CreateChannel(ConnectionSettings settings)
        {
            return new NetworkChannel();
        }

        protected override void OnAfterOpen()
        {
            StreamInitializer initializer = new StreamInitializer(Settings);
            initializer.Initialize(Channel);
            base.OnAfterOpen();
        }
    }
}
